﻿<%@ Page Language="C#" MasterPageFile="~/Common/MasterPage.master" AutoEventWireup="true" CodeFile="GuestBook.aspx.cs" Inherits="News_GuestBook" Title="浙江农林大学教学建设项目管理系统" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
            <asp:CheckBox ID="cbxOnlyUnpass" runat="server" Text="只列出尚未审核的留言" Visible="False">
        </asp:CheckBox>
    <asp:Button ID="btnFilter" runat="server" OnClick="btnFilter_Click" Text="显示" Visible="False"
        Width="50px" />
    <asp:DataList ID="DataList1" runat="server"  Width="100%" OnItemDataBound="DataList1_ItemDataBound" OnItemCommand="DataList1_ItemCommand">
        <ItemTemplate>
            <table  border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="background-image: url(../images/showbj.gif);height: 27px; border-left: #e8e8e8 1px solid;" align="right" colspan="3">
                        <div style="left: 2px; width: 350px; position: relative; top: 0px; height: 26px;
                            text-align: left">
                                <img src="../images/mail.gif" style="left: 0px; border-top-style: none; border-right-style: none;
                                    border-left-style: none; position: relative; top: 3px; border-bottom-style: none" alt="a" /><asp:Label
                                        ID="lblmail" runat="server" Text='<%# Eval("email") %>'></asp:Label>
                                <img src="../images/qq.gif" style="border-top-style: none; border-right-style: none;
                                    border-left-style: none; position: relative; top: 3px; border-bottom-style: none" alt="a" /><asp:Label
                                        ID="lblQQ" runat="server" Text='<%# Eval("qq") %>'></asp:Label>
                            <img src="../images/posttime.gif" style="left: 0px; border-top-style: none; border-right-style: none;
                                    border-left-style: none; position: relative; top: 3px; border-bottom-style: none" alt="a" /><asp:Label
                                        ID="lbltime" runat="server" Text='<%# Eval("datetime") %>'></asp:Label>
                                        </div>
                    </td>
                </tr>
                <tr>
                    <td style="border-right: 1px solid;" align="center">
                        <div style="left: 0px; width: 100px; position: relative; top: 0px; height: 100px">
                            <img alt="a" src='../images/face/<%# Eval("picurl") %>'
                                style="position: relative" /></div>
                        <asp:Label ID="lblname" runat="server" Text='<%# Eval("name") %>'></asp:Label></td>
                    <td colspan="2" style="width: 852px;border-bottom: 1px solid" >
                        <asp:Label ID="lblComment" runat="server" Text='<%# Eval("comment") %>'></asp:Label><%#Eval("reply")%></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblstatus" runat="server" Text='<%# Eval("status") %>' Visible="False"></asp:Label>
                        </td>
                    <td colspan="2" style="width: 852px;height:35px" align="right">
                   <div style="margin-bottom:15px">
                   <asp:Label ID="lblShowStatus" runat="server" ForeColor="Red"></asp:Label>
                       <asp:Image ID="imgreply" runat="server" ImageUrl="~/Images/reply.gif" />
                       <asp:LinkButton ID="btnreply" runat="server" CommandArgument='<%# Eval("id") %>'
                           CommandName="Replyit">审核通过或回复此留言</asp:LinkButton>&nbsp;<asp:Image ID="imgdelete" runat="server"
                               ImageUrl="~/Images/delete.gif" />
                       <asp:LinkButton ID="btndelete" runat="server" CommandArgument='<%# Eval("id") %>'
                           CommandName="Deleteit" OnClientClick="return confirm('删除的留言将无法恢复，你确定要删除这个留言吗?');">删除此留言</asp:LinkButton></div> 
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" FirstPageText="首页"
      HorizontalAlign="Right" LastPageText="末页" NextPageText="下页" 
      PageIndexBoxType="TextBox" PrevPageText="上页" ShowCustomInfoSection="Left"
      ShowPageIndexBox="Always" Width="100%" CustomInfoHTML="共<font color=blue><b>%RecordCount%</b></font>条数据 每页：<font color=blue><b>%PageSize%</b></font> 条 共<font color=blue><b>%PageCount%</b></font>页 当前页：<font color=red><b>%CurrentPageIndex%/%PageCount%</b></font>" OnPageChanged="AspNetPager1_PageChanged" CustomInfoSectionWidth="50%" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" CustomInfoTextAlign="Left">
      </webdiyer:AspNetPager>
</asp:Content>

